#ifndef SUGGEST_INTERFACE_H
#define SUGGEST_INTERFACE_H

#include "common.h"
#include "indexer.h"

class sgI : public suggestion::Suggest {
    public:
        explicit sgI(Ice::PropertiesPtr props, CACHE_MAP *);
        ~sgI();
    virtual suggestion::VectorUid
        doSearch(const std::string &, const suggestion::VectorSg &, Ice::Long, const Ice::Current&);
    private:
        char *dictPath;
        sgIndexer *__indexer;
        CACHE_MAP *__cache;
        int __isCache;
};

#endif
